package club.caihappy.config;

import club.caihappy.pojo.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * Created by DELL on 2021/10/6
 **/
@PropertySource(value = {"classpath:./Person.properties"})
@Configuration
public class MainConfigOfPropertyValue {
    @Bean
    public Person person(){
        return new Person();
    }
}
